set(KDISCOVERY_SOURCES
        discovery.cpp
        discovery.h
        discdeviceinfo.cpp
        discdeviceinfo.h
        tlv.h
        tlv.cpp
        unix-util.h
)

add_library(discovery ${KDISCOVERY_SOURCES})

# include_directories(/usr/include/x86_64-linux-gnu/qt5/QtCore/QObject)

target_include_directories(discovery PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/discserver)
target_include_directories(discovery PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(
        /usr/include/x86_64-linux-gnu/qt5/QtNetwork
)

target_link_libraries(discovery PRIVATE
        # Qt5:Core
        # Qt5:Network
        Qt${QT_VERSION_MAJOR}::Widgets
        Qt${QT_VERSION_MAJOR}::Network
        common
)
